//
//  MapMark.m
//  MapDemo
//
//  Created by grant on 12/1/09.
//  Copyright 2009 XMobileApp. All rights reserved.
//

#import "MapMark.h"


@implementation MapMark
@synthesize coordinate;
@synthesize title;
@synthesize subTitle;

- (id)initWithLatitude: (CLLocationDegrees)aLatitude longitude: (CLLocationDegrees)aLongitude
				 title:(NSString *)aTitle subTitle:(NSString *)aSubTitle
{
	if(self == [super init])
	{
		CLLocationCoordinate2D curCoordinate;
		curCoordinate.latitude = aLatitude;
		curCoordinate.longitude = aLongitude;
		coordinate = curCoordinate;
		
		self.title = aTitle;
		self.subTitle = aSubTitle;
	}
	return self;
}

- (void)dealloc
{
	[title release];
	[subTitle release];
	[super dealloc];
}

@end
